﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.PurchaseAndSales.Domain.Model
{
    /// <summary>
    /// 供应商表
    /// </summary>
    public class VendorModel
    {
        /// <summary>
        /// 供应商ID
        /// </summary>
        [Key]
        public int VendorSnowId { get; set; }

        /// <summary>
        /// 供应商编号
        /// </summary>
        public long VenDorCode { get; set; }

        /// <summary>
        /// 供应商类型（个人/企业）
        /// </summary>
        [MaxLength(50)]
        public string VendorType { get; set; }


        /// <summary>
        /// 负责人电话
        /// </summary>
        [MaxLength(11)]
        public string ResponsiblePhone { get; set; }

        /// <summary>
        ///负责人姓名
        /// </summary>
        [MaxLength(50)]
        public string ResponsibleName { get; set; }

        /// <summary>
        ///供应商名称
        /// </summary>
        [MaxLength(50)]
        public string VendorName { get; set; }

        /// <summary>
        ///身份证
        /// </summary>
        [MaxLength(18)]
        public string? IdentityCard { get; set; }

        /// <summary>
        /// 所在地（省）ID
        /// </summary>
        public int ProvinceId { get; set; }

        /// <summary>
        /// 所在地（市）ID
        /// </summary>
        public int CityId { get; set; }

        /// <summary>
        /// 所在地（区）ID
        /// </summary>
        public int AreaId { get; set; }



        /// <summary>
        /// 所属行业
        /// </summary>
        [MaxLength(50)]
        public string IndustryName { get; set; }

        /// <summary>
        /// 统一社会信用代码
        /// </summary>
        [MaxLength(100)]
        public string? UnifiedSocialCreditCode { get; set; }

        /// <summary>
        ///助记码
        /// </summary>
        [MaxLength(100)]
        public string? Mnemonics { get; set; }

        /// <summary>
        /// 供应商属性
        /// </summary>
        [MaxLength(100)]
        public string? VendorAttributes { get; set; }

        /// <summary>
        /// 所属单位
        /// </summary>
        public int? BusinessId { get; set; }

        /// <summary>
        /// 使用状态（使用，停用）
        /// </summary>
        public bool UseState { get; set; }

        /// <summary>
        /// 引用单位
        /// </summary>
        [MaxLength(50)]
        public string? UnitsOfReference { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(200)]
        public string? VendorDesc { get; set; }


        /// <summary>
        /// 所属市场（服务人员）
        /// </summary>
        [MaxLength(50)]
        public string? Markets { get; set; }

        /// <summary>
        ///业务员
        /// </summary>
        [MaxLength(50)]
        public string? Salesman { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [MaxLength(50)]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [MaxLength(50)]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 是否删除 true已删除  false未删除
        /// </summary>
        public bool IsDel { get; set; }

    }
}
